package com.banzhi.shop.activity;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.banzhi.shop.R;
import com.banzhi.shop.base.BaseActivity;
import com.banzhi.shop.utils.Translucent;

//收益明细(新)

//收益明细
public class IncomeStatementActivity extends BaseActivity implements View.OnClickListener {

    private LinearLayout mLlShopProfit;
    private LinearLayout mLlCollegeProfit;
    private LinearLayout mLlPartnerProfit;
    private LinearLayout mLlGroupingProfit;
    private LinearLayout mLlChooseProfit;
    private ImageView mIvBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_income_statement);
        Translucent.setTranslucent(this);
        initView();
        initListener();
    }

    private void initView() {
        mLlShopProfit = (LinearLayout) findViewById(R.id.ll_shop_profit);
        mLlCollegeProfit = (LinearLayout) findViewById(R.id.ll_college_profit);
        mLlPartnerProfit = (LinearLayout) findViewById(R.id.ll_partner_profit);
        mLlGroupingProfit = (LinearLayout) findViewById(R.id.ll_grouping_profit);
        mLlChooseProfit = (LinearLayout) findViewById(R.id.ll_choose_profit);
        mIvBack = (ImageView) findViewById(R.id.iv_back);

    }

    private void initListener() {
        mLlShopProfit.setOnClickListener(this);
        mLlCollegeProfit.setOnClickListener(this);
        mLlPartnerProfit.setOnClickListener(this);
        mLlChooseProfit.setOnClickListener(this);
        mLlGroupingProfit.setOnClickListener(this);
        mIvBack.setOnClickListener(this);


    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.ll_shop_profit:
             //   跳转店铺收益
                startActivity(new Intent(this,ShopProfitActivity.class));
                break;
            case R.id.ll_college_profit:
                //跳转学院收益
                startActivity(new Intent(this,CollegeProfitActivity.class));
                break;
            case R.id.ll_partner_profit:

                startActivity(new Intent(this,PartnerShouYiActivity.class));
                break;
            case R.id.ll_grouping_profit:

                Intent intent = new Intent(this, GroupingProfitActivity.class);
                startActivity(intent);
                break;
            case R.id.ll_choose_profit:
                //跳转任选收益
                startActivity(new Intent(this,ChoiceProfitActivity.class));
                break;
        }
    }
}
